﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data.SqlClient;
using System.Data;
using System.Windows.Forms;

namespace Shop_Manager.business
{
    class DataConnect
    {
        private SqlConnection sqlconn = null;
        public SqlConnection connectDB()
        {
            //string connetionString = null;
            //connetionString = "Data Source=WWW-C32FB0D2BBE\\SQLSERVER2008;Initial Catalog=quanlybanhang;User ID=sa;Password=123456";
            //sqlconn = new SqlConnection(connetionString);

            //try
            //{
            //    sqlconn.Open();
            //}
            //catch (Exception ex)
            //{
            //    MessageBox.Show("Can not open connection ! "+ ex.ToString());
            //    return null;
            //}
            //return sqlconn;
        }

        public void closeConnect() {
            sqlconn.Close();
        }
    }

}
